<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>个案信息查询管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
<style type="text/css">
.minWidth {
	min-width: 500px;
}

@media ( min-width : 789px) and (max-width: 1098px) {
	.secondChild {
		margin-left: 0
	}
}
</style>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/child/childBaseinfo/">个案信息查询列表</a></li>
		<li class="active"><a href="${ctx}/child/childBaseinfo/form?id=${childBaseinfo.id}">个案信息查询<shiro:hasPermission name="child:childBaseinfo:edit">${not empty childBaseinfo.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="child:childBaseinfo:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="childBaseinfo" action="${ctx}/child/childBaseinfo/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
		<div class="container-fluid">
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">儿童编码：</label>
			<div class="controls">
				<form:input path="childcode" htmlEscape="false" maxlength="50" class="span9 required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">儿童姓名：</label>
			<div class="controls">
				<form:input path="childname" htmlEscape="false" maxlength="26" class="span9 required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">出生证号：</label>
			<div class="controls">
				<form:input path="birthcode" htmlEscape="false" maxlength="50" class="span9"/>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">身份证号：</label>
			<div class="controls">
				<form:input path="cardcode" htmlEscape="false" maxlength="50" class="span9 "/>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">性别：</label>
			<div class="controls">
				<%-- <form:input path="gender" htmlEscape="false" maxlength="1" class="span9 required"/> --%>
				<form:radiobuttons path="gender" items="${fns:getDictList('sex')}" itemLabel="label" itemValue="value" class="input-medium"/>
				<span class="help-inline"><font color="red">*</font></span>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">出生日期：</label>
			<div class="controls">
				<input name="birthday" type="text" readonly="readonly" maxlength="20" class="span9 Wdate required"
					value="<fmt:formatDate value="${childBaseinfo.birthday}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">出生医院编码：</label>
			<div class="controls">
				<form:input path="birthhostipal" htmlEscape="false" maxlength="50" class="span9"/>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">出生体重(kg)：</label>
			<div class="controls">
				<form:input path="birthweight" htmlEscape="false" maxlength="18" class="span9 digits"/>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">母亲姓名：</label>
			<div class="controls">
				<form:input path="guardianname" htmlEscape="false" maxlength="50" class="span9 required"/>
				<span class="help-inline"><font color="red">*</font></span>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">母亲手机：</label>
			<div class="controls">
				<form:input path="guardianmobile" htmlEscape="false" maxlength="20" class="span9 required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">母亲身份证：</label>
			<div class="controls">
				<form:input path="guardianidentificationnumber" htmlEscape="false" maxlength="50" class="span9 required"/>
				<span class="help-inline"><font color="red">*</font></span>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">孩次：</label>
			<div class="controls">
				<form:input path="childorder" htmlEscape="false" maxlength="50" class="span9"/>
			</div>
		</div>
	</div>
	
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">创建者：</label>
			<div class="controls">
				<form:input path="creater" htmlEscape="false" maxlength="20" class="span9"/>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">创建日期：</label>
			<div class="controls">
				<input name="createdate" type="text" readonly="readonly" maxlength="20" class="span9 Wdate "
					value="<fmt:formatDate value="${childBaseinfo.createdate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">省(居住)：</label>
			<div class="controls">
				<form:input path="province" htmlEscape="false" maxlength="50" class="span9 required"/>
				<span class="help-inline"><font color="red">*</font></span>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">市(居住)：</label>
			<div class="controls">
				<form:input path="city" htmlEscape="false" maxlength="50" class="span9 required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">县(居住)：</label>
			<div class="controls">
				<form:input path="county" htmlEscape="false" maxlength="50" class="span9 "/>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">详细地址(居住)：</label>
			<div class="controls">
				<form:input path="address" htmlEscape="false" maxlength="200" class="span9"/>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">省(户口)：</label>
			<div class="controls">
				<form:input path="pr" htmlEscape="false" maxlength="50" class="span9 required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">市(户口)：</label>
			<div class="controls">
				<form:input path="ci" htmlEscape="false" maxlength="50" class="span9 required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">县(户口)：</label>
			<div class="controls">
				<form:input path="co" htmlEscape="false" maxlength="50" class="span9 "/>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">详细地址(户口)：</label>
			<div class="controls">
				<form:input path="regaddress" htmlEscape="false" maxlength="200" class="span9"/>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">户口属性：</label>
			<div class="controls">
				<form:input path="properties" htmlEscape="false" maxlength="50" class="span9 "/>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">居住属性：</label>
			<div class="controls">
				<form:input path="reside" htmlEscape="false" maxlength="50" class="span9 "/>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">区域划分：</label>
			<div class="controls">
				<form:input path="area" htmlEscape="false" maxlength="50" class="span9 "/>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">通讯地址：</label>
			<div class="controls">
				<form:input path="mailingaddress" htmlEscape="false" maxlength="100" class="span9"/>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">民族编码：</label>
			<div class="controls">
				<form:input path="nation" htmlEscape="false" maxlength="50" class="span9 "/>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">在册情况：</label>
			<div class="controls">
				<form:input path="situation" htmlEscape="false" maxlength="50" class="span9 "/>
			</div>
		</div>
	</div>	
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">接种单位编码：</label>
			<div class="controls">
				<form:input path="officeinfo" htmlEscape="false" maxlength="100" class="span9 "/>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">异常反应：</label>
			<div class="controls">
				<form:input path="paradoxicalreaction" htmlEscape="false" maxlength="200" class="span9"/>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">父亲姓名：</label>
			<div class="controls">
				<form:input path="father" htmlEscape="false" maxlength="50" class="span9"/>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">父亲手机：</label>
			<div class="controls">
				<form:input path="fatherphone" htmlEscape="false" maxlength="50" class="span9"/>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">父亲身份证号：</label>
			<div class="controls">
				<form:input path="fathercard" htmlEscape="false" maxlength="50" class="span9"/>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label"><abbr title="默认创建时间">最后修改时间</abbr>：</label>
			<div class="controls">
				<input name="updatedate" type="text" readonly="readonly" maxlength="20" class="span9 Wdate required"
					value="<fmt:formatDate value="${childBaseinfo.updatedate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
				<span class="help-inline"><font color="red">*</font></span>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label"><abbr title="标记是否已上报">上报的标记</abbr> 1(是)0(否)：</label>
			<div class="controls">
				<form:input path="upstatus" htmlEscape="false" maxlength="1" class="span9"/>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label"><abbr title="记录是否已迁入">迁入的记录</abbr> 1(是)0(否)：</label>
			<div class="controls">
				<form:input path="localtype" htmlEscape="false" maxlength="1" class="span9"/>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">儿童编码前十位：</label>
			<div class="controls">
				<form:input path="localcode" htmlEscape="false" maxlength="32" class="span9"/>
			</div>
		</div>
		<div class="control-group span4 minWidth secondChild">
			<label class="control-label">建档编号：</label>
			<div class="controls">
				<form:input path="tempid" htmlEscape="false" maxlength="32" class="span9"/>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span4 minWidth">
			<label class="control-label">接种单位编码(无用)：</label>
			<div class="controls">
				<form:input path="officecode" htmlEscape="false" maxlength="200" class="span9"/>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="control-group span8 minWidth">
			<label class="control-label">备注：</label>
			<div class="controls">
				<form:textarea path="remarks" htmlEscape="false" rows="5" maxlength="255" class="input-xlarge "/>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<div class="form-actions span8">
			<shiro:hasPermission name="child:childBaseinfo:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</div>
</div>
	</form:form>
</body>
</html>